<div class="bg-light lter b-b wrapper-sm">
	<h1 class="m-n font-thin h4">账单管理</h1>
</div>
<div class="wrapper-sm" ng-controller="receivableBillManagentController">
	<div class="panel panel-default">
		<div class="panel-heading font-bold"></div>
		<div class="panel-body">
			<label class="control-label pull-left w-xs">应收总编号：</label>
			<label class="col-lg-2 control-label text-left">{{receiptManangentData.billCode}}</label>
			<label class="control-label pull-left w-xs">应收总额：</label>
			<label class="col-lg-2 control-label text-left">{{receiptManangentData.totalMoney}}</label>
			<label class="control-label pull-left w-xs">结算单位：</label>
			<label class="col-lg-2 control-label text-left">{{receiptManangentData.settle}}</label>
			<div class="line line-xs pull-in"></div>
			<label class="control-label pull-left w-xs">结算日期：</label>
			<label class="col-lg-2 control-label text-left">{{receiptManangentData.creationTime}}</label>
			<label class="control-label pull-left w-xs">结算人：</label>
			<label class="col-lg-2 control-label text-left">{{receiptManangentData.reckoner}}</label>
			<label class="control-label pull-left m-t-xs w-xs">开票状态：</label>
			<div class="col-lg-2">
				<select id="page_receivableBillManagent_managent_status" class="form-control input-sm" ng-model="receiptManangentData.invoiceStatus" name="status" ng-options="x.value as x.text for x in invoiceManagentStatusDropDown">
                    <option value="">请选择</option>
                </select>
			</div>
			<div class="line line-xs pull-in"></div>
			<label class="control-label pull-left m-t-xs w-xs">开票日期：</label>
			<div class="col-md-2 col-xs-12 form-group">
				<div class="input-group input-group-sm date">
					<input id="invoiceTime" datetimepicker plugintype="datetime" ng-model="receiptManangentData.invoiceTime" name="invoiceTime" placeholder="起始时间" class="form-control"
						type="text" />
					<span id="openinvoiceTime" class="input-group-addon curpoint">
                        <span class="glyphicon glyphicon-calendar"></span>
					</span>
				</div>
			</div>
			<div class="line line-xs pull-in"></div>
			<label class="control-label pull-left w-xs">应收说明：</label>
			<label class="col-lg-8 control-label text-left">{{receiptManangentData.description}}</label>
			<div class="line  pull-in"></div>
			<label class="pull-left control-label w-xs"></label>
			<button id="page_receivableBillManagent_managent_save" ng-click="manangentSave()" class="pull-right-xs btn btn-sm btn-info btn-addon m-l-md"><i class="fa fa-check"></i>确定</button>
		</div>
	</div>
	<div class="panel panel-default">
		<div class="panel-heading font-bold">查询</div>
		<div class="panel-body">
			<label class="control-label pull-left m-t-xs w-xs">应收编号</label>
			<div class="col-md-2 form-group">
				<input type="text" class="form-control input-sm" id="page_receivableBillManagent_managent_receivableBillId" ng-model="queryTerms.receivableBillId" placeholder="请输入应收编号" name="receivablecode">
			</div>
			<label class="control-label pull-left m-t-xs w-xs">合同号</label>
			<div class="col-md-2 form-group">
				<input type="text" class="form-control input-sm" id="page_receivableBillManagent_managent_contractId" ng-model="queryTerms.contractId" placeholder="请输入合同号" name="contractnumber">
			</div>
			<label class="control-label pull-left m-t-xs w-xs">客户单位</label>
			<div class="col-md-2 form-group">
				<input type="text" class="form-control input-sm" id="page_receivableBillManagent_managent_clientName" ng-model="queryTerms.clientName" placeholder="请输入客户单位" name="clientName">
			</div>
			<button id="page_receivableBillManagent_managent_query" ng-click="queryFunc()" class="btn btn-sm btn-default btn-addon" ng-class="{'disabled':querying}" ng-disabled="querying">
                <i class="fa fa-search" ng-show="!querying"></i>
                <i class="fa fa-spinner no-bordr" ng-show="querying" ng-class="{'fa-spin':querying}"></i>
                <span ng-show="!querying">查询</span>
                <span ng-show="querying">查询中...</span>
            </button>
		</div>
	</div>
	<div class="panel panel-default">
		<div class="panel-heading">
			所属应收列表
		</div>
		<div class="table-responsive">
			<div ui-grid="gridOptions" ui-grid-exporter ui-grid-pagination ui-grid-auto-resize ui-grid-resize-columns style="height:{{heightA}}px; min-height:395px; min-width:1000px;">
				<div class="watermark" ng-if="!gridOptions.data.length">暂无数据</div>
			</div>
		</div>
		<!--<div class="table-responsive" ng-show="listDis">
			<div ui-grid="receivableExportList" ui-grid-exporter ui-grid-pagination ui-grid-auto-resize ui-grid-resize-columns>
				<div class="watermark" ng-if="!receivableExportList.data.length">暂无数据</div>
			</div>
		</div>-->
		<div class="panel-body">
			<button id="page_receivableBillManagent_managent_add" ng-click="skipAddReceicale()" class="pull-right-xs btn btn-sm btn-info btn-addon "><i class="fa fa-plus"></i>新增应收订单</button>
			<button id="page_receivableBillManagent_managent_excel" ng-click="exportFunc()" ng-show="exportDis" class="pull-right-xs btn btn-sm btn-success btn-addon "><i class="fa fa-download"></i>导出报表</button>
			<button id="page_receivableBillManagent_managent_back" class="pull-right-xs btn btn-sm btn-warning btn-addon" ng-click="back()" ><i class="fa fa-mail-reply"></i>返回</button>
		</div>
	</div>
</div>